from sam.util.dateUtil import formatter_datetime


def formatter_line(result: list, datetime_formatter: str = None):
    new_result_list = []
    for res in result:
        new_res = formatter_datetime(res, datetime_formatter)
        new_result_list.append(new_res)
    return new_result_list
